package santeclair.connexion.service.parametrage.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import santeclair.connexion.dao.parametrage.ProtocoleDao;
import santeclair.connexion.domaine.parametrage.Protocole;
import santeclair.connexion.service.parametrage.ProtocoleService;

/**
 * @author pchaussalet
 */
@Service
public class ProtocoleServiceImpl implements ProtocoleService {

    @Autowired
    private ProtocoleDao protocoleDao;

    public void setProtocoleDao(ProtocoleDao protocoleDao) {
        this.protocoleDao = protocoleDao;
    }

    /** {@inheritDoc} */
    public List<Protocole> getListeProtocoles() {
        return protocoleDao.getListeProtocoles();
    }

    /** {@inheritDoc} */
    public Protocole getProtocole(Integer idProtocole) {
        return protocoleDao.getProtocole(idProtocole);
    }

}
